import request from '@/utils/request'

// 查询通话记录列表
export function listMiddleNotify(query) {
  return request({
    url: '/middleNotify/middleNotify/list',
    method: 'get',
    params: query
  })
}

// 查询通话记录详细
export function getMiddleNotify(id) {
  return request({
    url: '/middleNotify/middleNotify/' + id,
    method: 'get'
  })
}

// 新增通话记录
export function addMiddleNotify(data) {
  return request({
    url: '/middleNotify/middleNotify',
    method: 'post',
    data: data
  })
}

// 修改通话记录
export function updateMiddleNotify(data) {
  return request({
    url: '/middleNotify/middleNotify',
    method: 'put',
    data: data
  })
}

// 删除通话记录
export function delMiddleNotify(id) {
  return request({
    url: '/middleNotify/middleNotify/' + id,
    method: 'delete'
  })
}
